﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ATM.BUS;
using ATM.Entities;

namespace ATMSystem
{
    public partial class frmCheckBalance : Form
    {
        frmAskForReceipt frm;
        private Account acc = null;
        private Card card = null;
        public frmCheckBalance()
        {
            InitializeComponent();
        }

        private void frmCheckBalance_Load(object sender, EventArgs e)
        {
            string balance = "Your account have: " +CheckBalanceBus.GetBalance(card.ID)+" .";
            label1.Text = balance;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            frm.Show();
        }

        private void btnCan_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
